import yagmail,logging
def log_set():
    logging.basicConfig(filename='serviceplatformlog.txt',filemode='w+',level=logging.DEBUG,format="%(levelname)s -> %(lineno)d -> %(asctime)s ->%(message)s")

def send_mail(filename):
    mail =yagmail.SMTP(user="2680735970@qq.com",password="siroxiyqibtjdjfe",host='smtp.qq.com')
    mail.send(to="2680735970@qq.com",subject="综合服务平台新增代理商接口测试报告",contents="adasdasdadadad",attachments=filename)
